package at.fhooe.im440.pandora.graphic;

import at.fhooe.im440.pandora.visuals.*;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;


public abstract class GameGraphic {

import at.fhooe.im440.pandora.logic.entities.Entity;
import at.fhooe.im440.pandora.visuals.*;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;


public abstract class GameGraphic {

	protected List<Visual> visuals;
	protected Point2D center;
	public void addVisual(Visual v) {
		if( visuals == null || visuals.isEmpty()) {
			this.visuals = new ArrayList<Visual>();
		}
		visuals.add(v);
	}

	public void removeVisual(Visual v) {
		visuals.remove(v);
	}
	
	public abstract void draw(Graphics2D g);

	protected abstract void updateVisuals();
	
	public void addVisual(Visual v) {
		if( visuals == null || visuals.isEmpty()) {
			this.visuals = new ArrayList<Visual>();
		}
		visuals.add(v);
	}
	
	public void removeVisual(Visual v) {
		visuals.remove(v);
	}

	
	public abstract void draw(Graphics2D g);

}
